<div class="box box-primary">
    <div class="box-header with-border">
        <h3 class="box-title">添加课程</h3>
    </div>
    <!-- /.box-header -->
    <!-- form start -->
    <form class="form-horizontal">
        {{ csrf_field() }}
        <div class="box-body">
            <div class="form-group">
                <label class="col-sm-2 control-label" for="name">课程名</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="name" id="name" placeholder="课程名程">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">上课日期</label>
                <div class="col-sm-8 input-group date">
                    <div class="input-group-addon">
                        <i class="fa fa-calendar"></i>
                    </div>
                    <input type="text" class="form-control pull-right" id="datepicker" name="week">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label" for="remarks">备注</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="remarks" placeholder="备注">
                </div>
            </div>
        </div>
        <!-- /.box-body -->

        <div class="box-footer">
            <button type="button" class="btn btn-primary" data-url="{{ url('admin/course') }}" data-type="POST" onclick="subAction(this)">提 交</button>
            <input type="hidden" name="subject_id" value="{{ $subject_id }}">
        </div>
    </form>
</div>
<script>
    $(function () {
        //Date picker
        $('#datepicker').datepicker({
            autoclose: true
        })
    })
</script>